<template>
  <div class="app-container">
    <el-table v-loading="loading" :data="dataList">
      <el-table-column label="名称" align="center" prop="title" />
      <el-table-column label="链接" align="center" prop="url" />
    </el-table>
  </div>
</template>

<script>
import { getMpLink } from "@/api/mpManage/mpLink";

export default {
  name: "mpmpLinkindex",
  data() {
    return {
      // 遮罩层
      loading: true,
      // 字典表格数据
      dataList: [],
    };
  },
  created() {
    this.getLink();
  },
  methods: {
    /** 查询字典类型列表 */
    getLink() {
      this.loading = true;
      getMpLink()
        .then((response) => {
          this.dataList = response.data;
          this.loading = false;
        })
        .catch(() => {
          this.loading = false;
        });
    },
  },
};
</script>
